/*
 * @# UserBaseinfo.java 2011-12-14 上午11:59:11
 * 
 * Copyright (C) 2010 - 2011 广州羿安信息科技有限公司
 * Guangzhou ianswer information technology co. ltd.
 * 
 * All rights reserved!
 */
package com.ianswer.px.user.entity;

import java.util.Date;

/**
 * @author lunx
 */
public class User extends UserBaseInfo {

	/**
	 * 已发邮件尚未激活
	 */
	private static final Long UNACTIVATE = 2L;
	/**
	 * 已激活
	 */
	private static final Long ACTIVATE = 3L;

	/**
	 * 已禁用
	 */
	private static final Long FORBIDDEN = 4L;

	/**
	 * 秀客类型
	 */
	private static final Long XK_TYPE = 0L;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 确认密码
	 */
	private String confirmPwd;

	/**
	 * 昵称
	 */
	private String username;

	/**
	 * 艺名
	 */
	private String stageName;

	/**
	 * 证件名称
	 */
	private String certName;

	/**
	 * 证件号码
	 */
	private String certCode;

	/**
	 * 出生日期
	 */
	private Date birthdate;

	/**
	 * 性别
	 */
	private String gender;

	/**
	 * 星座
	 */
	private String xinzuo;

	/**
	 * 个人签名
	 */
	private String tags;

	/**
	 * 自我介绍
	 */
	private String aboutMe;

	private String qq;

	/**
	 * 注册时间
	 */
	private Long regDate;

	/**
	 * 注册IP
	 */
	private Long regIp;

	/**
	 * 所属省编号
	 */
	private String province;

	/**
	 * 所属市编号
	 */
	private String city;

	/**
	 * 状态
	 */
	private Long state;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getConfirmPwd() {
		return confirmPwd;
	}

	public void setConfirmPwd(String confirmPwd) {
		this.confirmPwd = confirmPwd;
	}

	public String getCertName() {
		return certName;
	}

	public void setCertName(String certName) {
		this.certName = certName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getXinzuo() {
		return xinzuo;
	}

	public void setXinzuo(String xinzuo) {
		this.xinzuo = xinzuo;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCertCode() {
		return certCode;
	}

	public void setCertCode(String certCode) {
		this.certCode = certCode;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getAboutMe() {
		return aboutMe;
	}

	public void setAboutMe(String aboutMe) {
		this.aboutMe = aboutMe;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public Long getRegDate() {
		return regDate;
	}

	public void setRegDate(Long regDate) {
		this.regDate = regDate;
	}

	public Long getRegIp() {
		return regIp;
	}

	public void setRegIp(Long regIp) {
		this.regIp = regIp;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Long getState() {
		return state;
	}

	public void setState(Long state) {
		this.state = state;
	}

	public String getStageName() {
		return stageName;
	}

	public void setStageName(String stageName) {
		this.stageName = stageName;
	}

	public User unactivate() {
		this.setState(UNACTIVATE);
		this.setUserType(XK_TYPE);
		return this;
	}

	public User activate() {
		this.setState(ACTIVATE);
		return this;
	}

	public boolean isActivate() {
		return UNACTIVATE.equals(this.state);
	}

	public boolean isForbidden() {
		return FORBIDDEN.equals(this.state);
	}
}
